package com.potevio.simulator.strategy;

import io.netty.channel.ChannelHandlerContext;

import java.util.LinkedHashMap;
import java.util.Map;

/**  
 * @Description: 接收报文策略
 * @Date 2021/6/1  14:07
 * @Author zyd
 * @Version 1.0
 */
public interface ReceiveMsgStrategy {
    /**
     * 返回报文命令代码
     * @param ctx
     * @param resultHexMap
     * @param revertCommandCode
     * @throws Exception
     */
    void receiveMessage(ChannelHandlerContext ctx, Map<String, LinkedHashMap<String, String>> resultHexMap, String revertCommandCode) throws Exception;
}
